﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="MainEvento.aspx.cs" Inherits="AcademiaInteligenteWeb.MainEvento" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        Eventos
    </h1>
    <div id="acoes">
        <ul>
            <li>
                <a href="NewEvento.aspx">Novo</a>
            </li>
            <li class="itemSelected">
                <asp:LinkButton Text="Alterar" ID="lnkAlterar" runat="server" OnClick="lnkAlterar_Click" />
            </li>
            <li class="itemSelected">
                <asp:LinkButton Text="Excluir" ID="lnkExcluir" runat="server" OnClick="lnkExcluir_Click" />
                <asp:HiddenField ID="hfCurrentItem" ClientIDMode="Static" runat="server" />
            </li>
            <li class="itemSelected">
                <asp:LinkButton Text="Selecionar Ambientes" ID="lnkSecionarAmbiente" runat="server" OnClick="lnkSecionarAmbiente_Click" />
            </li>
        </ul>
    </div>
    <div id="dados">
        <asp:GridView ID="grdEventos" runat="server" AutoGenerateColumns="false" AllowPaging="true">
            <AlternatingRowStyle CssClass="alterningRow" />
            <SelectedRowStyle CssClass="selectedRow" />
            <Columns>
                 <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"  HeaderStyle-Width="30px">
                    <ItemTemplate>
                        <input type="checkbox" name="chkSelect" class="checkboxGrid" value='<%#Eval("id")%>' />
                    </ItemTemplate>
                </asp:TemplateField> 
                <asp:BoundField DataField="Descricao" HeaderText="Descrição" />
                <asp:BoundField DataField="Data" HeaderText="Data" DataFormatString="{0:dd/MM/yyyy}" />
                
                
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
